import  matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()

x = np.linspace(0,10,100)

#plt.subplot(2,1,1)
#plt.plot(x,np.sin(x))

#plt.subplot(2,1,2)
#plt.plot(x,np.cos(x))

#fig.savefig('my_figure.png')

#fig,ax = plt.subplots(2)

#ax[0].plot(x,np.sin(x))
#ax[1].plot(x,np.cos(x))

ax = plt.axes()
ax.plot(x,np.sin(x))
ax.set(xlim=(0,10),ylim=(-2,2),
       xlabel='x',ylabel='sin(x)',
       title='A Simple Plot')


plt.show()
